from PyQt5.QtWidgets import QWidget, QVBoxLayout, QLabel, QPushButton
from PyQt5.QtCore import pyqtSignal

class OnlineWindow(QWidget):
    logout_signal = pyqtSignal()

    def __init__(self):
        super().__init__()
        self.width = 1280
        self.height = 720

        self.setWindowTitle("在线客户端")
        self.setGeometry(0, 0, self.width, self.height)

        self.layout = QVBoxLayout()

        self.logout_button = QPushButton("退出登录")
        self.logout_button.clicked.connect(self.logout_signal.emit)
        self.layout.addWidget(self.logout_button)

        self.setLayout(self.layout)
